package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author：LiGen
 * @Package：com.sc.nft.enums
 * @Project：sc_metago
 * @name：MallMemberEquityTypeEnum
 * @Date：2024/4/1 14:49
 * @Filename：MallMemberEquityTypeEnum
 */
@AllArgsConstructor
@Getter
public enum MallMemberEquityTypeEnum {
    MALL_EXCLUSIVE_FULL_REDUCTION(1, "商城专享满减"),
    COMMODITY_PRIORITY(2, "商品优先抢"),
    LIFE_PRIVILEGE(3, "生活特权"),
    BIRTHDAY_GIFT_BAG(4, "生日礼包"),
    ;

    @EnumValue
    private int code;

    private String desc;

    public static List<MallMemberEquityTypeEnum> getCommodityList() {
        List<MallMemberEquityTypeEnum> list = Lists.newArrayList();
        // 商品优先抢
        list.add(COMMODITY_PRIORITY);
        return list;
    }

    public static List<MallMemberEquityTypeEnum> getCouponList() {
        List<MallMemberEquityTypeEnum> list = Lists.newArrayList();
        // 商城专享满减
        list.add(MALL_EXCLUSIVE_FULL_REDUCTION);
        // 生活特权
        list.add(LIFE_PRIVILEGE);
        // 生日礼包
        list.add(BIRTHDAY_GIFT_BAG);
        return list;
    }
}
